package com.millstein.tsinglog.model.dto.carousel;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 保存轮播图图片的实体
 */
@Data
public class CarouselImageSaveDTO {

    private Long id;

    @NotNull
    @Min(1)
    @Max(2)
    private Short imageType;

    private Long aid;

    @NotNull
    @Min(1)
    @Max(99)
    private Integer sort;

    @NotNull
    @Min(0)
    @Max(1)
    private Short usable;

    private String outerArticleTitle;
    private String outerArticleUrl;
    private String imagePreviewUrl;
    private String expireTime;
}
